package com.hongdee.base.dict.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by My on 2017/3/15.
 */
@Entity
@Table(name = "T_BC_NEWDICT")
public class TBcNewDict extends BaseEntity {
    /**
     * 存储值
     */
    @Column(name = "code", length = 32, columnDefinition = " VARCHAR(32) COMMENT '存储值' ")
    private String code;
    /**
     * 显示值
     */
    @Column(name = "label", length = 32, columnDefinition = " VARCHAR(32) COMMENT '显示值' ")
    private String label;
    /**
     * 上级编码
     */
    @Column(name = "p_code", length = 32, columnDefinition = " VARCHAR(32) COMMENT '上级编码' ")
    private String pCode;
    /**
     * 备注
     */
    @Column(name = "remark", length = 1024, columnDefinition = " VARCHAR(1024) COMMENT '备注' ")
    private String remark;
    /**
     * 类型 0：分组、1字典项
     */
    @Column(name = "type", length = 1, columnDefinition = " VARCHAR(1) COMMENT '类型' ")
    private String type;
    /**
     * 状态
     */
    @Column(name = "status",length = 1,columnDefinition = " VARCHAR(1) COMMENT '状态' ")
    private String status;

    /**
     * @return code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code String
     */
    public void setCode(String code) {
        this.code = code;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * @return pCode
     */
    public String getpCode() {
        return pCode;
    }

    /**
     * @param pCode String
     */
    public void setpCode(String pCode) {
        this.pCode = pCode;
    }

    /**
     * @return remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * @param remark String
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type String
     */
    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
